home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
StartupTools
/
LoadKickC0.lha
/
LoadKickC0
/
src
/
CreateRelocTab.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-03
|
1KB
|
33 lines
/****************************************************************************
* *
* LoadKickC0 V1.1 -- Copyright 1992 by Matthias Scheler *
* *
* This program may be freely copied, as long as all copyright *
* notices are left intact and unchanged. *
* *
****************************************************************************/
#include <exec/types.h>
#include <stdio.h>
#include <stdlib.h>
extern ULONG rtable[];
void main(void)
{
FILE *AsmFile;
int Index;
if ((AsmFile=fopen("reloc16.asm","w"))==NULL) exit (10);
fprintf (AsmFile,"\n\tCSECT text,0\n\n\tXDEF RelocTab16\nRelocTab16:\n");
fprintf (AsmFile,"\tdc.w $%04x\n",rtable[0]);
Index=0;
while (rtable[++Index])
fprintf (AsmFile,"\tdc.w $%04x\n",rtable[Index]-rtable[Index-1]);
fprintf (AsmFile,"\tdc.w 0\n\n\tEND\n");
}